﻿using Core.Configuration;

namespace Core.Domain.Common
{
    /// <summary>
    /// 公共设置
    /// </summary>
    public class CommonSettings : ISettings
    {
       /// <summary>
       /// 启用站点地图
       /// </summary>
        public bool SitemapEnabled { get; set; }

        /// <summary>
        /// 获取端口编号
        /// </summary>
        public int RedisPort { get; set; }

        /// <summary>
        /// Java脚本被禁用显示一个警告
        /// </summary>
        public bool DisplayJavaScriptDisabledWarning { get; set; }

        /// <summary>
        /// 是否支持全文搜索
        /// </summary>
        public bool UseFullTextSearch { get; set; }

        /// <summary>
        /// 全文搜索
        /// </summary>
        public FulltextSearchMode FullTextMode { get; set; }

        /// <summary>
        /// 是否记录404错误
        /// </summary>
        public bool Log404Errors { get; set; }


        /// <summary>
        ///是否输出<meta http-equiv="X-UA-Compatible" content="IE=edge"/> tag
        /// </summary>
        public bool RenderXuaCompatible { get; set; }

        /// <summary>
        /// 是否输出X-UA-Compatible
        /// </summary>
        public string XuaCompatibleValue { get; set; }

        /// <summary>
        /// 是否允许用户自定义分页选项
        /// </summary>
        public bool AllowCustomersToSelectPageSize { get; set; }


        /// <summary>
        /// 获取或设置分页选项
        /// </summary>
        public string PageSizeOptions { get; set; }

        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; }
    }
}
